package com.tongandtang.mq;

import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

import java.util.Map;

@Slf4j
@Component
@RabbitListener(queues = "DirectQueue")
public class DirectReceiver {

    @RabbitHandler
    public void process(Map testMessage) {
        log.info(testMessage.toString());
    }
}
